<?php /* @var $photo Files */ ?>
<?php if( $isPhoto == true ): ?>
	<p>
		<div class="naujiena_img">
		<?php echo 		 image_tag(
							Files::getDirPath('tiny').$photo->getUname()
							, array(
								'border' => 0
							    , 'id' => 'resize'
								)
							)?>
		</div>
		<?php echo link_to(
                        image_tag(
                            'delete.png'
                            , array(
                                'border' => 0
                            )
                        )
                        , 'category/deleteimg?id=' . $category->getId() . '&uname=' . $photo->getNameforurl()
                        , array(
                            'confirm' => __('Are you sure?!')
                        )
        ) ?>
	</p><br /><br /><br />
<?php else: ?>
	<?php echo input_file_tag('category[photo]') ?>
<?php endif; ?>
